home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / comms / awebsoftware / docs / _mailscript < prev    next >
AmigaDOS Script File  |  1996-05-20  |  2KB  |  48 lines

  1. .KEY TOADDRESS/A
  2. .BRA {
  3. .KET }
  4.  
  5. ; Sample script to use your editor and mail post program
  6. ; to send mail from within AWeb for a mailto: address
  7. ; To use this script, configure AWeb to use for its Mailto: program
  8. ;    command = (path)/_mailscript
  9. ;  arguments = %s
  10. ;
  11. ; Make sure to change all path names, program names, etc. in this script
  12. ; to the ones you're actually using.
  13.  
  14. ; Generate To: and Subject: headers
  15.  
  16. echo >T:AWeb.mailto.msg.{$$} "To: {TOADDRESS}*NSubject: *N"
  17.  
  18. ; Append signature (change $HOME/.signature to the path and filename
  19. ; where your signature resides).
  20.  
  21. type >>T:AWeb.mailto.msg.{$$} $HOME/.signature
  22.  
  23. ; Call editor (make sure it's in your path). In case you use CygnusED:
  24. ; do not follow more than one mailto: link at the same time. CED has a bug
  25. ; that may prevent this script from calling sendmail (IO is not returned for
  26. ; last message if more than one message is edited on the same screen).
  27. ; Commodore's ED and other editors do not have this problem.
  28. ;
  29. ; Change this line to call your favourite editor. E.g. if you want to
  30. ; use CygnusEd, you will change this line to:
  31. ;  CED T:AWeb.mailto.msg.{$$} -keepio ; CygnusED V2
  32. ; or
  33. ;  CED -s T:AWeb.mailto.msg.{$$}      ; CygnusED V3.5
  34.  
  35. ED T:AWeb.mailto.msg.{$$}
  36.  
  37. ; Send the mail with a mail delivery program, like SMTPpost, or UUCP's
  38. ; sendmail. Make sure it is in your path, or else include the full
  39. ; path in the command.
  40. ; Change this line to use your mail delivery program. Refer to that
  41. ; program's documentation for the exact options to use.
  42.  
  43. PutMail MAIL=T:AWeb.mailto.msg.{$$} NOSIG NOHEAD
  44.  
  45. ; Clean up temporary files.
  46.  
  47. delete >NIL: T:AWeb.mailto.msg.{$$}
  48.